const {defineConfig} = require('@vue/cli-service');
const path = require("path");
const lessPath = path.resolve(__dirname + "/src/styles/cover.less");

module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    css: {
        loaderOptions: {
            less: {
                // 若less-loader版本小于6.0 则去掉lessOption这一个选项，直接配置
                lessOption: {
                    modifyVars: {
                        //直接覆盖变量
                        // 'cell-font-size': '16px',
                        //或者通过less文件覆盖
                        hack: `true; @import "${lessPath}";`,
                    }
                }
            }
        }
    }
});
